package com.springMVC.model;

import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.math.BigInteger;

/**
 * 功能模块说明
 * Created with IntelliJ IDEA.
 * User: AnCong
 * Date: 2017/4/27
 */
public class Order{

    private BigInteger id;
    private String code;
    private BigDecimal purchasePrice;
    private BigDecimal salePrice;
    private Integer quantity;
    private Integer status;
    private String createAt;
    private String overAt;
    private Integer payType;
    private BigDecimal discountPrice;
    private String buyerName;
    private String buyerPhone;
    private String buyerAddress;
    private boolean deleted;
    private Integer orderFrom;
    private BigInteger goodsId;
    private BigInteger specId;
    private BigInteger partnerId;

    public BigInteger getId(){
        return id;
    }

    public void setId(BigInteger id){
        this.id = id;
    }

    public String getCode(){
        return code;
    }

    public void setCode(String code){
        this.code = code;
    }

    public BigDecimal getPurchasePrice(){
        return purchasePrice;
    }

    public void setPurchasePrice(BigDecimal purchasePrice){
        this.purchasePrice = purchasePrice;
    }

    public BigDecimal getSalePrice(){
        return salePrice;
    }

    public void setSalePrice(BigDecimal salePrice){
        this.salePrice = salePrice;
    }

    public Integer getQuantity(){
        return quantity;
    }

    public void setQuantity(Integer quantity){
        this.quantity = quantity;
    }

    public Integer getStatus(){
        return status;
    }

    public void setStatus(Integer status){
        this.status = status;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    public String getCreateAt(){
        return createAt;
    }

    public void setCreateAt(String createAt){
        this.createAt = createAt;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    public String getOverAt(){
        return overAt;
    }

    public void setOverAt(String overAt){
        this.overAt = overAt;
    }

    public Integer getPayType(){
        return payType;
    }

    public void setPayType(Integer payType){
        this.payType = payType;
    }

    public BigDecimal getDiscountPrice(){
        return discountPrice;
    }

    public void setDiscountPrice(BigDecimal discountPrice){
        this.discountPrice = discountPrice;
    }

    public String getBuyerName(){
        return buyerName;
    }

    public void setBuyerName(String buyerName){
        this.buyerName = buyerName;
    }

    public String getBuyerPhone(){
        return buyerPhone;
    }

    public void setBuyerPhone(String buyerPhone){
        this.buyerPhone = buyerPhone;
    }

    public String getBuyerAddress(){
        return buyerAddress;
    }

    public void setBuyerAddress(String buyerAddress){
        this.buyerAddress = buyerAddress;
    }

    public boolean getDeleted(){
        return deleted;
    }

    public void setDeleted(boolean deleted){
        this.deleted = deleted;
    }

    public Integer getOrderFrom(){
        return orderFrom;
    }

    public void setOrderFrom(Integer orderFrom){
        this.orderFrom = orderFrom;
    }

    public BigInteger getGoodsId(){
        return goodsId;
    }

    public void setGoodsId(BigInteger goodsId){
        this.goodsId = goodsId;
    }

    public BigInteger getSpecId(){
        return specId;
    }

    public void setSpecId(BigInteger specId){
        this.specId = specId;
    }

    public BigInteger getPartnerId(){
        return partnerId;
    }

    public void setPartnerId(BigInteger partnerId){
        this.partnerId = partnerId;
    }
}
